package com.bwie.dao;

import com.bwie.bean.Canteen;
import com.bwie.bean.City;
import com.bwie.bean.Food;
import com.bwie.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CanteenDao {
    List<Canteen> list(Map map);

    List<Food> listFood();

    List<City> listCity(Integer pid);

    int addCanteen(Canteen canteen);

    void addCf(Map map);

    int delCanteen(Integer cid);

    void delCf(Integer cid);

    int delCanteens(@Param("cid") String cid);

    void delCfs(@Param("cid")String cid);

    int update(Canteen canteen);

    Canteen listHui(Integer cid);

    User listUser(User user);
}
